import { createRouter, createWebHistory } from "vue-router";

const routes = [
    {
        path: "/",
        name: "Medical",
        component: () =>
            import("../views/MedicalService.vue")
    },
    {
        path: "/Search",
        name: "Search",
        component: () =>
            import("../views/SearchDoctor.vue")
    },
    {
        path: "/Home",
        name: "Home",
        component: () =>
            import("../views/PersonalCenter.vue")
    },
    {
        path: "/DepartmentList",
        name: "DepartmentList",
        component: () =>
            import("../views/DepartmentList.vue")
    },
    {
        path: "/ConfirmAppointment",
        name: "ConfirmAppointment",
        component: () =>
            import("../views/ConfirmAppointment.vue")
    },
    {
        path: "/AppointmentList",
        name: "AppointmentList",
        component: () =>
            import("../views/AppointmentList.vue")
    },
    {
        path: "/PatientManagement",
        name: "PatientManagement",
        component: () =>
            import("../views/PatientManagement.vue")
    },
    {
        path: "/AddPatient",
        name: "AddPatient",
        component: () =>
            import("../views/AddPatient.vue")
    },
    {
        path: "/ViewQueue",
        name: "ViewQueue",
        component: () =>
            import("../views/ViewQueue.vue")
    },
    {
        path: "/AppointmentDetail",
        name: "AppointmentDetail",
        component: () =>
            import("../views/AppointmentDetail.vue")
    },
    {
        path: "/PayTest",
        name: "PayTest",
        component: () =>
            import("../views/PayTest.vue")
    },
    {
        path: "/RegisteredDetail",
        name: "RegisteredDetail",
        component: () =>
            import("../views/RegisteredDetail.vue")
    },
    {
        path: "/ShowAppointment",
        name: "ShowAppointment",
        component: () =>
            import("../views/ShowAppointment.vue")
    },
    {
        path: "/PayNotify",
        name: "PayNotify",
        component: () =>
            import("../views/PayNotify.vue")
    },
    {
        path: "/SignIn",
        name: "SignIn",
        component: () =>
            import("../views/SignIn.vue")
    },
    {
        path: "/AddArrangement",
        name: "AddArrangement",
        component: () =>
            import("../views/AddArrangement.vue")
    }
];

const router = createRouter({
    history: createWebHistory(process.env.BASE_URL),
    routes,
});

export default router;
